<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2012 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version GIT: $Id: Author: Ian Wilson  Tue Aug 14 14:56:11 2012 +0100 Modified in v1.5.1 $
 */
?>

<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']), ENT_COMPAT, CHARSET, TRUE);
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message'], ENT_COMPAT, CHARSET, TRUE);
} else {

}
?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<header id="headerWrapper">
<!--bof-navigation displa-->
<div id="navMainWrapper">
<div class="row-fluid">
<div id="textGreeting" class="span5">
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <p class="greeting"><?php echo zen_customer_greeting(); ?></p>
    <?php } ?>    
</div>
<div id="navMain" class="row-fluid span7">
    <ul class="pull-right">
		<!--bof:vincent-->
		<li><a href="http://www.lucklaser.jp/free-shipping-ezp-11.html" target="_blank">送料無料</a></li>
		<li><a href="http://www.lucklaser.jp/contact_us.html" target="_blank">お問い合わせ</a></li>
		<li><a href="http://www.lucklaser.com" target="_blank">English</a></li>		
		<!--eof:vincent-->
    <?php require(DIR_WS_MODULES . 'genesis/currencies.php'); ?><?php require(DIR_WS_MODULES . 'genesis/languages.php'); ?><?php if ($_SESSION['customer_id']) { ?><li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="account"><i class="icon-user"></i> <?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li><li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="logout"><i class="icon-lock"></i> <?php echo HEADER_TITLE_LOGOFF; ?></a></li><?php }else{ ?><li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="register"><i class="icon-user"></i> <?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li><?php } ?><li><a data-my-tooltip="tooltip" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" data-placement="bottom" title="<?php echo $_SESSION['cart']->count_contents(); ?>&nbsp;items - <?php echo  $currencies->format($_SESSION['cart']->show_total()); ?>" class="cart"><i class="icon-shopping-cart"></i> <?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>   
	</ul>
</div>
</div>    
</div>
<!--eof-navigation display-->
 
<!--bof-branding display-->
<div id="logoWrapper">
    <div class="row-fluid">
        <div id="logo" class="span6"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
        <?php if (HEADER_SALES_TEXT != '') { ?>
              <!--<span id="tagline"><blockquote><p><?php echo HEADER_SALES_TEXT;?></p></blockquote></span>-->
        <?php } ?>
        <div class="span6"><div class="search-top-header pull-right"><?php require(DIR_WS_MODULES . 'sideboxes/genesis/search_header.php'); ?></div></div>
    </div>
</div>
<!--eof-branding display-->

<!--eof-header logo and navigation display-->

<!--bof-main-menu-->
<?php //require($template->get_template_dir('tpl_main_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_main_menu.php'); ?>
<!--eof-main-menu-->

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->


</header>
<?php } ?>